/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bsc.war.service;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.StringTokenizer;

/**
 *
 * @author luisZavaleta
 */
public class DatesUtil {
    //1000*60*60*24;       

    public static final Long DAYS = 86400000L;
    public static final Long WORKING_HOURS = 10800000L;
    private static final String DATE_FORMAT = "yyyy,MM,dd";
    private static final SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);

    public static Integer getDifference(Date date1, Date date2, Long type) {
        // return ScoreCardUtils.getWorkingDays(date2, date2) * 8;
        Integer dur = Math.round((date1.getTime() - date2.getTime()) / type);
        return dur;

    }
    
}
